﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace XoLib.Web
{
	public class WebModule<T> : IWebModuleManager where T : IWebModule, new()
	{
        public WebModule(string ext)
        {
           this.Ext = ext;
        }
        public string Ext { get; private set; }
        public IWebModule PreRender(RequestContext request)
        {
            var ff =  new T();
            ff.PreRender(request);
            return ff;
        }    
	}
}
